import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
  
    {
      path: '/home',
      name: 'home',
      component: () => import('../components/home.vue'),
    
    },
    {
      path: '/add',
      name: 'add',
      component: () => import('../components/add.vue'),
     
    },
    ,{
      path:'/',
      redirect:'home',
      component:()=>import('../components/home.vue')
  },
  ]
})

export default router
